package model

import "strconv"

type SlaveModel struct {
	OutIP  string
	Id     string
	Port   uint16
	WsPort uint16
}

func (s *SlaveModel) String() string {
	return "{ outIp:" + s.OutIP + " id:" + s.Id + " port:" + strconv.Itoa(int(s.Port)) + "wsPort:" + strconv.Itoa(int(s.WsPort)) + " }"
}

func NewSlaveModel() *SlaveModel {
	return &SlaveModel{}
}
